package com.it.aop.demoaop01.jdbc.mapper;

import org.springframework.stereotype.Repository;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * @Author: xiaoqiang
 * @Description:
 * @Date: 2021/6/25
 * @Version: 1.0
 */
@Repository
public class UserMapper6 {

    public void addDate(Connection connection) throws SQLException {

        PreparedStatement preparedStatement = connection.prepareStatement("insert into user(name) value(?)");

        preparedStatement.setObject(1,"ll");
        preparedStatement.execute();

    }
}
